package com.example.sfm.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(name = "奖惩记录查询对象",description = "用于封装用户查询条件")
public class AwardsPunishmentsQueryDto extends CommonPage{
    @Schema(description = "学生ID")
    private Integer studentId;

    @Schema(description = "类型（0=奖励,1=惩罚）")
    private Integer type;

    @Schema(description = "等级（0=一般,1=严重）")
    private Integer level;

    @Schema(description = "开始日期（格式：yyyy-MM-dd）")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @Schema(description = "结束日期（格式：yyyy-MM-dd）")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;
}
